//
//  TJMineItem.m
//  BaoDian
//
//  Created by mac on 2024/7/22.
//

#import "TJMineItem.h"

@implementation TJMineItem

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        
        self.backgroundColor = UIColor.tj_1E1F23Color;
        self.addCornerRadius(12);

        _titleLabel = [UILabel lableWithSuperView:self font:UIFontMake(14) color:UIColor.whiteColor title:nil textAlignment:NSTextAlignmentCenter];
        [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.left.offset(12);
        }];
        
        _imageView = [UIImageView addToView:self];
        _imageView.clipsToBounds = YES;
        _imageView.layer.masksToBounds = YES;
        [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.bottom.right.inset(0);
            make.width.height.offset(43);
        }];
 
    }
    return self;
}
@end
